package com.evildog.workspace.life.application.service;

import com.evildog.workspace.common.object.PageQuery;
import com.evildog.workspace.common.result.PagedResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;
import com.evildog.workspace.life.application.bo.AlbumBO;
import com.evildog.workspace.life.application.bo.AlbumPageBO;
import com.evildog.workspace.life.application.dto.AlbumDTO;
import com.evildog.workspace.life.application.dto.AlbumPageDTO;
import com.evildog.workspace.life.application.entity.Album;

import java.util.List;

/**
 * <p>
 * album Service
 * </p>
 *
 * @author evildog
 * @since 2020-07-18
 */
public interface AlbumService extends IService<Album> {

    /**
    * 自定义分页
    */
    PagedResult<AlbumPageBO> getPageList(PageQuery query, List<QueryConditionDTO> queryConditions, AlbumPageDTO pageDTO);

    /**
    * 获取详情
    */
    AlbumBO getDetailById(Long id);

    /**
    * 获取详情
    */
    boolean updateById(Long id, AlbumDTO param);

    /**
    * 获取详情
    */
    boolean save(AlbumDTO param);

    boolean remove(Long id);
}
